package com.crm.jpaandthymeleaf.entity;

import javax.persistence.*;
import java.util.Objects;

/**
 * @author 周敬
 * @version 1.0
 * @packageName com.crm.jpaandthymeleaf.entity
 * @fileName CstLinkman
 * @createTime 2021/12/15-20:19-星期三
 * @lastModify 2021/12/15-20:19-星期三
 */
@Entity
@Table(name = "cst_linkman", schema = "crm", catalog = "")
public class CstLinkman {
    private long lkmId;
    private String lkmCustNo;
    private String lkmCustName;
    private String lkmName;
    private String lkmSex;
    private String lkmPostion;
    private String lkmTel;
    private String lkmMobile;
    private String lkmMemo;

    @Id
    @Column(name = "lkm_id")
    public long getLkmId() {
        return lkmId;
    }

    public void setLkmId(long lkmId) {
        this.lkmId = lkmId;
    }

    @Basic
    @Column(name = "lkm_cust_no")
    public String getLkmCustNo() {
        return lkmCustNo;
    }

    public void setLkmCustNo(String lkmCustNo) {
        this.lkmCustNo = lkmCustNo;
    }

    @Basic
    @Column(name = "lkm_cust_name")
    public String getLkmCustName() {
        return lkmCustName;
    }

    public void setLkmCustName(String lkmCustName) {
        this.lkmCustName = lkmCustName;
    }

    @Basic
    @Column(name = "lkm_name")
    public String getLkmName() {
        return lkmName;
    }

    public void setLkmName(String lkmName) {
        this.lkmName = lkmName;
    }

    @Basic
    @Column(name = "lkm_sex")
    public String getLkmSex() {
        return lkmSex;
    }

    public void setLkmSex(String lkmSex) {
        this.lkmSex = lkmSex;
    }

    @Basic
    @Column(name = "lkm_postion")
    public String getLkmPostion() {
        return lkmPostion;
    }

    public void setLkmPostion(String lkmPostion) {
        this.lkmPostion = lkmPostion;
    }

    @Basic
    @Column(name = "lkm_tel")
    public String getLkmTel() {
        return lkmTel;
    }

    public void setLkmTel(String lkmTel) {
        this.lkmTel = lkmTel;
    }

    @Basic
    @Column(name = "lkm_mobile")
    public String getLkmMobile() {
        return lkmMobile;
    }

    public void setLkmMobile(String lkmMobile) {
        this.lkmMobile = lkmMobile;
    }

    @Basic
    @Column(name = "lkm_memo")
    public String getLkmMemo() {
        return lkmMemo;
    }

    public void setLkmMemo(String lkmMemo) {
        this.lkmMemo = lkmMemo;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        CstLinkman that = (CstLinkman) o;
        return lkmId == that.lkmId && Objects.equals(lkmCustNo, that.lkmCustNo) && Objects.equals(lkmCustName, that.lkmCustName) && Objects.equals(lkmName, that.lkmName) && Objects.equals(lkmSex, that.lkmSex) && Objects.equals(lkmPostion, that.lkmPostion) && Objects.equals(lkmTel, that.lkmTel) && Objects.equals(lkmMobile, that.lkmMobile) && Objects.equals(lkmMemo, that.lkmMemo);
    }

    @Override
    public int hashCode() {
        return Objects.hash(lkmId, lkmCustNo, lkmCustName, lkmName, lkmSex, lkmPostion, lkmTel, lkmMobile, lkmMemo);
    }
}
